package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the account_privileges_tbl database table.
 * 
 */
@Entity
@Table(name="account_privileges_tbl")
public class AccountPrivilege extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ACCT_PRIV_CODE")
	private int acctPrivCode;

	//bi-directional many-to-one association to Account
	@ManyToOne
	@JoinColumn(name="ACCT_CODE")
	private Account account;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="USER_ID_CODE")
	private User user;

	public AccountPrivilege() {
	}

	public int getAcctPrivCode() {
		return this.acctPrivCode;
	}

	public void setAcctPrivCode(int acctPrivCode) {
		this.acctPrivCode = acctPrivCode;
	}

	public Account getAccount() {
		return this.account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}